Elements of Parallel Computing by Aubanel Eric

Elements of Parallel Computing by Aubanel Eric

Author:Aubanel, Eric
Language: eng
Format: epub
Publisher: CRC Press
Published: 2016-12-07T16:00:00+00:00


As we saw above for matrix-vector multiplication, there are choices to be made regarding the distribution and replication of data. These choices should be guided by the goal of minimizing communication. We’ll revisit this issue in Chapter 5. MPI programmers can be tempted to use send/receive operations in cases that would be better handled by using a global communication routine, as discussed above. This issue is nicely discussed in the paper Send-receive considered harmful [29].

4.9

CONCLUSION

We’ve explored in depth a number of commonly used program structures relevant to the three machine models presented in Chapter 2. It would be difficult to assemble a complete catalog of program structures. The goal of this chapter and the previous one has been to provide a guide to creating a parallel decomposition and implementing it for a particular machine model. Given a particular machine there are usually several program structures that can be considered. With this chapter as a guide, one or more suitable structures can be chosen, even before the programming language is considered. Given the hierarchical nature of parallel computers, as we saw in Chapter 2, it is worth considering combining several program structures (see Exercise 4.26). The SIMD program model should always be considered, as most processors support SIMD execution in some fashion. If the problem is large enough to target a cluster, then a coarse decomposition using a straightforward message passing implementation, can be combined with a fine grained decomposition for each compute node, using a suitable shared memory program structure. This hybrid approach has been successful using MPI and OpenMP [20].



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.